package edu.sctu.wulixia.month4and5.day20150510.testone;

/**
 * Created by user05 on 2015/5/10.
 */
public class TestTwo {
    int sum = 0;

    public TestFour getSum(TestThree testthree) {
        for (int i = 0; i <=testthree.number; i++) {
            sum+= i;
        }
        TestFour testfour = new TestFour();
        testfour.number = sum;

        return testfour;
    }
}
